﻿using System;
using System.Collections.Generic;
using Norm;
using Norm.BSON.DbTypes;

public class Product {
    public Product() {
        // Default values are to be set here
        Shipping = new Address();
    }
    public ObjectId _id { get; set; }
    public double Price { get; set; }
    public Address Shipping { get; set; }
    public DbReference<Brand> TheBrand { get; set; }
    public string Name { get; set; }
    public override string ToString() {
        return string.Format("[Product: Price={0}, Shipping={1}, Name={2}]", Price, Shipping, Name);
    }
}
